package com.fzq.dao.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fzq.config.Sensitive;
import lombok.Data;

@Data
@TableName("sensitive_user")
public class SensitiveUser  {

    @TableId(type = IdType.AUTO)
    private Long id;

    @Sensitive(type = Sensitive.SensitiveType.NAME)
    private String realName;

    @Sensitive(type = Sensitive.SensitiveType.PHONE)
    private String phone;

    @Sensitive(type = Sensitive.SensitiveType.ID_CARD)
    private String idCard;

    @Sensitive(type = Sensitive.SensitiveType.EMAIL)
    private String email;

    @Sensitive(type = Sensitive.SensitiveType.BANK_CARD)
    private String bankCard;

    @Sensitive(type = Sensitive.SensitiveType.ADDRESS)
    private String address;

    @Sensitive(type = Sensitive.SensitiveType.CUSTOM, pattern = "\\d{3}-\\d{4}")
    private String customField;
}
